package com.mall.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import com.mall.bean.Address;
import com.mall.service.IAddressService;

@Controller
public class AddressController {

	@Resource
	private IAddressService addressService;

	@RequestMapping("person/address")
	public String findFloor(Address address, Model model) {


		List<Address> school_address = addressService.findFloor(address);

		model.addAttribute("address", school_address);

		return "person/address";
	}

	/*
	 * @RequestMapping("school")
	 *
	 * @ResponseBody public List<Address> school(Address address,Model model){
	 *
	 * List<Address> _address = addressService.findFloor(address);
	 *
	 *
	 * return _address; }
	 */
}
